export function getDomHideSize(dom?: HTMLElement) {
    return {
        width: dom.offsetWidth,
        height: dom.offsetHeight
    };
}

export function getWindowSize(doc?: Document) {
    return {
        width: window.innerWidth || (doc || document).documentElement.clientWidth || (doc || document).body.offsetWidth,
        height: window.innerHeight || (doc || document).documentElement.clientHeight || (doc || document).body.offsetHeight
    };
}

export function changePointEvents(type: 'auto' | 'none', dom: HTMLElement) {
    if (dom) {
        dom.style.pointerEvents = type;
    }
}
